home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 013 / hd1kclus.arc / HDPAT2.TXT
Encoding:
Text File  |  1986-06-30  |  4.7 KB  |  113 lines

  1. By popular demand, we are reprinting this article from Usenet.
  2.  
  3. 2K Cluster size for 10MB and 15MB fixed disks under DOS 3.1
  4.  
  5. Standard 10mb/15mb fixed disks formatted under DOS 3.1 utilize 4K
  6. clusters (i.e., the minimum space allocated to any file is 4096
  7. bytes), while 20mb and larger drives utilize 2K clusters.  At
  8. work, I use a PC with twin 10mb drives under 3.1. Since I have a
  9. multitude of small files on these disks, the smaller allocation
  10. unit's space saving advantage far outweighs any theoretical
  11. disadvantage of additional overhead for DOS to handle the added
  12. allocation units.  With the help of Bob Morse, Jim Gainsley, and
  13. the DOS technical Reference,  I was able to make the changes
  14. necessary to use 2K clusters on both of my 10mb drives.  By
  15. following the step-by-step instructions below, you will be
  16. able to make the switch to 2K clusters yourself.  The need for
  17. making a complete backup of all your files prior to attempting
  18. this procecure cannot be overemphasized.   You will need the
  19. following tools:
  20.  
  21.     1. DOS version 3.1
  22.  
  23.     2. A disk utility such as Norton's NU.COM, or equivalent.
  24.  
  25. Most critical to the process is the sequence in which this
  26. procedure is atttempted.  Here is the 4k to 2k cluster procedure:
  27.  
  28. 1.  Do a complete backup of the drive, using your current version
  29.     of DOS.
  30.  
  31. 2.  Cold boot DOS 3.1 and FDISK the drive to create a partition.
  32.  
  33. 3.  Format the drive using the DOS format program.  Don't use any
  34.     parameters ( no /s or /v ).
  35.  
  36. 4.  Using your Norton (or whatever), select the boot sector and
  37.     view it.  See below for an explanation of the pertinent info
  38.     in this sector.  You should see a value of 08 for sectors per
  39.     cluster, and a value of 0800 for sectors per fat.  All
  40.     changes to the fat sectors required for 2k clusters will be
  41.     accomplished by the subsequent format (6,below).  No other
  42.     manual changes are required.  A more detailed explanation of
  43.     these the two changes:
  44.  
  45.        The number of sectors per cluster would change from
  46.        08 to 04, since that's what this is all about.  The
  47.        sectors per FAT will change, in order to accommodate
  48.        (1) the increased number of possible FAT entries, and 
  49.        (2) the increased size of each fat entry (new 16 vs. old
  50.        12 bits each).
  51.  
  52.  
  53.  
  54.  
  55.  
  56. 5.  Exit Norton and do a cold boot.  This is critical, since the
  57.     boot sector is read by DOS only once, at boot time, in order
  58.     to build the BIOS Parameter Block.  Having different info in
  59.     the boot sector than what's in the memory-resident BPB will 
  60.     cause exceedingly flaky things to happen, as you can imagine.
  61.  
  62. 6.  Reformat the drive using the DOS program, using whatever
  63.     switches that you desire (/s or /v).  Format will not affect
  64.     your changes to the boot sector.
  65.  
  66. 7.  Restore your files, remembering to use the new restore switch
  67.     (/p) which prompts before restoring system files.  If you
  68.     restore an old version command.com, make sure to copy a 3.x
  69.     version over it afterward.  You should now be operational
  70.     again, with 2k clusters.
  71.  
  72. Example of the first few bytes in the boot sector displayed in
  73. hex format, after formatting with DOS 3.1, and prior to 2k
  74. cluster size change.
  75.  
  76. EB299049 424D2020 332E3100 02080100 020002F3 50F80800
  77.                              ^^                  ^^
  78.                              AA                   BB
  79. After the 2k cluster size changes:
  80. 10 meg drive:
  81.  
  82. EB299049 424D2020 332E3100 02040100 020002F3 50F81500
  83.                              ^^                  ^^
  84.                              AA                   BB 
  85.  
  86. To get 1k clusters use the following parameters:
  87. 10 meg only:
  88.  
  89. EB299049 424D2020 332E3100 02020100 020002F3 50F82A00
  90.                              ^^                  ^^  
  91.                              AA                  BB
  92.  
  93. 15 meg drive:
  94.  
  95. EB299049 424D2020 332E3100 02040100 020002F3 50F82A00
  96.                              ^^                  ^^^^
  97.                              AA                   BB
  98.  
  99. Where the data elements directly above AA are sectors per
  100. cluster, and above BB are sectors per FAT.
  101.  
  102. Further info on the entries in the boot sector entries use to
  103. build the BIOS parameter block can be found in the DOS 3.1
  104. Technical Reference, Page 3-22.  Of course, I cannot warrant that
  105. this chage will work for all controller/disk combinations,
  106. particularly for controllers and drives which are not "XT
  107. clones", though it should work for all drives compatible enough
  108. to work under DOS 3.1
  109.  
  110. This revision of the original letter that allowed the change to
  111. 10 meg for 2k clusters is as is.  All reference to the 15 meg
  112. drive and 10 meg 1k cluster changes were thought out by Carver Smith
  113. and typed in by Carl Shepherd.